package com.alon.spring01.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @program: spring01
 * @description: 用户传输类
 * @author: yulongguang
 * @create: 2019-08-01 16:29
 **/
@Data
public class UserDto {
    /**
     * id
     */
    @NotNull(message = "用户id不能为空")
    private Integer id;

    @NotBlank(message = "用户姓名name不能为空")
    private String name;
}
